package lancooUpLoad;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import java.util.List;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2017/8/24/024.
 */

public class SubmitParam extends BaseApi {

    private List<SubmitDataJson> mListSubmitDataJson;
    public List<SubmitDataJson> getListSubmitDataJson() {
        return mListSubmitDataJson;
    }

    public void setListSubmitDataJson(List<SubmitDataJson> mListSubmitDataJson) {
        this.mListSubmitDataJson = mListSubmitDataJson;
    }


    public SubmitParam(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);
        return httpPostServer.submitDataJson(PaperInfor.PaperAnsweredItemCount,
                PaperInfor.PaperDuration,PaperInfor.schoolId,PaperInfor.term, mListSubmitDataJson);
    }
}